local extension = Package:new("qun")
extension.extensionName = "study"

extension:loadSkillSkelsByPath("./packages/study/pkg/qun/skills")

Fk:loadTranslationTable{
  ["qun"] = "群",
  ["gai"] = "改",
}

local xurong = General:new(extension, "gai__xurong", "qun", 4)
xurong:addSkills { "gai__xionghuo", "gai__shajue" }

Fk:loadTranslationTable{
  ["gai__xurong"] = "徐荣",

  ["$gai__xionghuo1"] = "鼎汇千秋，引江河入镬，升腾万古风流。",
  ["$gai__xionghuo2"] = "将者临战，执霜刃摧敌，醉邀袍泽分炙。",
  ["$gai__shajue1"] = "围我数重又如何？今烈刃在手，且试剑苍穹。",
  ["$gai__shajue2"] = "我欲雄立天下，弘武烈之士，逐四海之潮",
  ["~gai__xurong"] = "为将死战，可得其所。",
}

local xushao = General:new(extension, "gai__xushao", "qun", 3)
xushao:addSkills { "gai__pingjian" }

Fk:loadTranslationTable{
    ["gai__xushao"] = "许劭",

    ["$gai__pingjian1"] = "千帆过尽，评枭雄之谋，论天下分合。",
    ["$gai__pingjian2"] = "三尺毛锋，迎九天之水，琢一世功名。",
    ["~gai__xushao"] = "乱世评鉴难再续，唯有荷香夜夜长。",
  }

  local machao = General:new(extension, "gai__machao", "qun", 4)
  machao:addSkills { "gai__shichou", "zhuiming", "mashu" }

  Fk:loadTranslationTable{
    ["gai__machao"] = "马超",

    ["$gai__shichou1"] = "你们一个都别想跑！",
    ["$gai__shichou2"] = "新仇旧恨，一并结算！",
    ["$zhuiming1"] = "去地下忏悔你们的罪行吧！",
    ["$zhuiming2"] = "以尔等之血，祭我族人。",
    ["~gai__machao"] = "父亲！父亲！！",
  }

  local jvshou = General:new(extension, "gai__jvshou", "qun", 3, 3)
  jvshou:addSkills { "gai__jianying", "gai__shibei" }

  Fk:loadTranslationTable{
    ["gai__jvshou"] = "界沮授",

    ["$gai__jianying1"] = "主公坐占胜机，缓行亦无所碍。",
    ["$gai__jianying2"] = "得胜已是定局，何必急功近利？",
    ["$gai__shibei1"] = "尽忠竭命，绝不动摇。",
    ["$gai__shibei2"] = "身困敌营，不改向北赤心。",
    ["~gai__jvshou"] = "只望河北，不受战火侵扰。",
  }
  
  local zhujun = General:new(extension, "gai__zhujun", "qun", 4)
  zhujun:addSkills { "gongjian", "kuimang", "jvxiang" }

  Fk:loadTranslationTable{
    ["gai__zhujun"] = "朱儁",

    ["~gai__zhujun"] = "乞降不受，愿一战！",
  }

  local duanwei = General:new(extension, "gai__duanwei", "qun", 4)
  duanwei:addSkills { "gai__langmie" }

  Fk:loadTranslationTable{
    ["gai__duanwei"] = "段煨",

    ["~gai__duanwei"] = "禀赡天子，终无二意。",
}

local lvbu = General:new(extension, "gai__lvbu", "qun", 5)
lvbu.subkingdom = "shu"
lvbu:addSkills { "wuchang", "wushuang", "liyu", "qingjiaol", "chengxu" }

Fk:loadTranslationTable{
  ["gai__lvbu"] = "吕布",
}

local xuyou = General:new(extension, "gai__xuyou", "qun", 3)
xuyou:addSkills { "qianfux", "yushi" }
Fk:loadTranslationTable{
  ["gai__xuyou"] = "谋许攸",

  ["~gai__xuyou"] = "孟德小儿，你…你过河拆桥！",
}

local lvlingqi = General:new(extension, "gai__lvlingqi", "qun", 4, 4, General.Female)
lvlingqi:addSkills { "guowu", "gai__zhuangrong" }
lvlingqi:addRelatedSkills { "shenwei", "wushuang" }

Fk:loadTranslationTable{
  ["gai__lvlingqi"] = "吕玲绮",

  ["$shenwei_gai__lvlingqi1"] = "继父神威，无坚不摧！",
  ["$shenwei_gai__lvlingqi2"] = "我乃温侯吕奉先之女！",
  ["$wushuang_gai__lvlingqi1"] = "猛将策良骥，长戟破敌营。",
  ["$wushuang_gai__lvlingqi2"] = "杀气腾剑戟，严风卷戎装。",
  ["~gai__lvlingqi"] = "父亲，女儿好累……",
}

local caocao = General(extension, "gai__caocao", "qun", 4)
caocao:addSkills { "gai__lingfa", "gai__zhian" }
caocao:addRelatedSkills { "ex__jianxiong" }

Fk:loadTranslationTable{
  ["gai__caocao"] = "曹操",

  ["~gai__caocao"] = "奸宦当道，难以匡正啊……",
}

local xunshuang = General:new(extension, "gai__xunshuang", "qun", 3)
xunshuang:addSkills { "yangji", "gai__dandao", "qingli", "daojie" }
xunshuang.total_hidden = true

Fk:loadTranslationTable{
  ["gai__xunshuang"] = "族荀爽",

  ["$daojie_gai__xunshuang1"] = "君子固穷，心如石，不可转。",
  ["$daojie_gai__xunshuang2"] = "志节不屈，为玉碎，不为瓦全。",
  ["~gai__xunshuang"] = "父不知子贤，子不知父愚……",
}

local gongsunyuan = General:new(extension, "gai__gongsunyuan", "qun", 4)
gongsunyuan.subkingdom = "wei"
gongsunyuan:addSkills{"ld__huaiyi", "ld__zisui"}

Fk:loadTranslationTable{
  ["gai__gongsunyuan"] = "公孙渊",

  ["~gai__gongsunyuan"] = "流星骤损，三军皆溃，看来大势去矣……",
}

local zhangkai = General:new(extension, "gai__zhangkai", "qun", 4)
zhangkai:addSkills { "gai__xiangshuz" }
Fk:loadTranslationTable{
  ["gai__zhangkai"] = "张闿",

  ["~gai__zhangkai"] = "报应竟来得这么快……",
}

local zhangliao = General:new(extension, "gai__zhangliao", "qun", 4)
zhangliao.subkingdom = "wei"
zhangliao:addSkills { "ol__zhengbing", "tuwei" }

Fk:loadTranslationTable{
  ["gai__zhangliao"] = "张辽",
}

local yangbiao = General:new(extension, "gai__yangbiao", "qun", 3)
yangbiao:addSkills { "js__zhaohan", "rangjie", "gai__yizheng",}
Fk:loadTranslationTable{
  ["gai__yangbiao"] = "杨彪",

  ["~gai__yangbiao"] = "未能效死佑汉，只因宗族之重……",
}

local wangyun = General:new(extension, "gai__wangyun", "qun", 3)
wangyun:addSkills { "gai__shelun", "fayi" }
Fk:loadTranslationTable{
  ["gai__wangyun"] = "王允",
}

local liubiao = General:new(extension, "gai__liubiao", "qun", 3)
liubiao:addSkills { "yansha", "qingping", "ty_ex__zongshi" }

Fk:loadTranslationTable{
  ["gai__liubiao"] = "刘表",
}

local chendeng = General:new(extension, "gai__chendeng", "qun", 3)
chendeng:addSkills { "lunshi", "re__guitu", "wangzu" }

Fk:loadTranslationTable{
  ["gai__chendeng"] = "陈登",
}

local ganning = General:new(extension, "gai__ganning", "qun", 4)
ganning:addSkills { "gai__jinfan", "mini__sheque", "fenwei" }

Fk:loadTranslationTable{
  ["gai__ganning"] = "星甘宁",
}

local nanhualaoxian = General:new(extension, "gai__nanhualaoxian", "qun", 4)
nanhualaoxian:addSkills { "gai__gongxiu", "gai__jinghe" }
nanhualaoxian:addRelatedSkills { "ex__leiji", "yinbingn", "huoqi", "guizhu", "xianshou", "lundao",
  "guanyue", "yanzhengn", "ex__biyue", "ex__tuxi", "ty_ex__mingce", "ty_ex__zhiyan" }
  
Fk:loadTranslationTable{
  ["gai__nanhualaoxian"] = "南华老仙",

  ["~gai__nanhualaoxian"] = "道亦有穷时……",
}

local hejin = General:new(extension, "gai__hejin", "qun", 4)
hejin:addSkills { "gai__zhaobing", "gai__zhuhuanh", "ty__yanhuo" }

Fk:loadTranslationTable{
  ["gai__hejin"] = "何进",
}

local yangqiu = General:new(extension, "gai__yangqiu", "qun", 4)
yangqiu:addSkills { "gai__saojian" }

Fk:loadTranslationTable{
  ["gai__yangqiu"] = "阳球",
}

  return extension
